import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.mall + 'api/feedbackApi'
let servicefig = appConfig.microServModules.mall + 'api/serviceBillConfig'

export function saveSourcingInfo (data) {
  return request(`${service}/saveSourcingInfo`, {method: 'post', data: data})
}

/**
 * 自动生成编码
 * */
export function nextVal(data) {
  return request(`${servicefig}/nextVal`, {method: 'get', data})
}

export function listPage (data) {
  return request(`${service}/listPage`, {method: 'post', data: data})
}

export function feedbackInfo (data) {
  return request(`${service}/feedbackInfo`, {method: 'get', data})
}

export function insertFeedback (data) {
  return request(`${service}/insertFeedback`, {method: 'post', data: data})
}
